<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>

<head>
<title>差错管理</title>
<script type="text/javascript">
$(document).ready(function(){
	$("#editForm").vaildAjax(function(data){
		alert('保存成功');
		$('input[name=broadcastError.id]').val(data);
		BaseJs.setReadonly();
		$('#sub').hide();
	});
});
</script>
</head>
<body>
<h2 class="title">差错管理</h2>
<s:form id="editForm" action="broadcastError/EditBroadcastError">
	<s:hidden name="broadcastError.id" />
	<table class="form">
		<tr>
			<th width="20%"><span class="hint">*</span>错误类型：</th>
			<td width="30%"><m:select enumType="broadcastError.errorType"
				name="broadcastError.errorType" cssClass="rule[required]" /></td>
			<th width="20%"><span class="hint">*</span>人员：</th>
			<td width="30%"><m:dropUser name="broadcastError.user.id"
				cssClass="rule[required]" /></td>
		</tr>
		<tr>
			<th><span class="hint">*</span>出错时间：</th>
			<td><m:date name="broadcastError.date"
				cssClass="rule[required date]" maxDate="0" /></td>
			<th></th>
			<td></td>
		</tr>
		<tr>
			<th rowspan="3">描述：</th>
			<td rowspan="3" colspan="3"><s:textarea
				name="broadcastError.detail" cssClass="{maxlength:2000}" /></td>
		</tr>
	</table>
	<div class="btnGroup"><input type="submit" value="提交" id="sub" /><input
		type="button" value="返回列表"
		onclick="BaseJs.toAction('broadcastError/SearchBroadcastError!search');" /></div>
</s:form>
</body>